package org.ITschool.support.util;

import javax.servlet.http.HttpSession;

import net.sf.json.JSON;
import net.sf.json.JSONObject;

import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;

public class Uploadprocess {
   public JSON uploadprocessload(){
	    WebContext webContext=WebContextFactory.get();
	    HttpSession session=webContext.getSession();
	    processbanner uLister=(processbanner)session.getAttribute("uplistener");
        JSONObject jsonObject=new JSONObject();
        jsonObject.put("data1", Double.toString(uLister.getPercent()));
	    return jsonObject;
   }
}
